package com.example.a14110100420.yuejian.WSerivice;

import com.example.a14110100420.yuejian.Wbean.picture.PictureDetail;
import com.example.a14110100420.yuejian.Wbean.picture.PictureList;

import java.util.List;

import okhttp3.MultipartBody;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.Query;

/**
 * Created by wanger on 2017/10/25.
 */

public interface PictureService {
    //获取晒图列表
    @GET("lists/mod/shaitu/related/1")
    Call<List<PictureList>> pictureList(

    );

    //获取晒图详情
    @GET("slists/mod/shaireply/related/1/shaitu_id/")
    Call<List<PictureDetail>> pictureDetail(
            @Query("shaitu_id") String shaitu_id
    );

    //插入评论
    @GET("create/mod/shaireply/SessionID/ 2ul9sj8vlfoZ122e1s98048k2")
    Call<String> insertcomment(
            @Query("shaitu_id") String shaitu_id,
            @Query("userid") String userid,
            @Query("reply_userid") String reply_userid,
            @Query("reply") String reply

    );
    @Multipart
    @POST("workout/api.php/fcreate/mod/shaitu")
    Call<ResponseBody>addshaitu(
            @Query("userid") String userid,
            @Query("title") String title,
            @Part() MultipartBody.Part file
    );
}
